package org.dromara.hotel.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 酒店价格规则对象 ter_pricing_rule
 *
 * @author xch
 * @date 2025-06-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ter_pricing_rule")
public class TerPricingRule extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     *
     */
    private Long roomId;

    /**
     * 规则类型
     */
    private String ruleType;

    /**
     * 规则生效开始日期
     */
    private LocalDate startDate;

    /**
     * 规则生效结束日期
     */
    private LocalDate endDate;

    /**
     * 条件表达式
     */
    private String conditionJson;

    /**
     * 计算公式
     */
    private String formula;

    /**
     * 优先级
     */
    private Integer priority;

    /**
     * 是否有效
     */
    private Long isActive;
    private Long hotelId;
    private String hotelName;
    private String roomType;
}
